// 销售
const request = require('../utils/request')

//  销售提成 列表
export function sellRoyList(data) {
  return request({
    method: "get",
    url: "/sales.coms/cvSalComsWx/listWx",
    header: {
      "Content-Type": "application/x-www-form-urlencoded",
      'reqType': 'wx',
      'X-Access-Token': wx.getStorageSync('token')
    },
    data
  });
}
//  销售提成 申请
export function sellRoyApply(data) {
  return request({
    method: "post",
    url: "/sales.coms/cvSalComsWx/addComsWx",
    header: {
      "Content-Type": "application/json",
      'reqType': 'wx',
      'X-Access-Token': wx.getStorageSync('token')
    },
    data
  });
}
//  销售提成 审批
export function sellRoyCheck(data) {
  return request({
    method: "post",
    url: "/sales.coms/cvSalComsWx/addComsWx",
    header: {
      "Content-Type": "application/json",
      'reqType': 'wx',
      'X-Access-Token': wx.getStorageSync('token')
    },
    data
  });
}
//  销售提成 结清
export function sellRoySettle(data) {
  return request({
    method: "post",
    url: "/sales.coms/cvSalComsWx/comsSquare",
    header: {
      "Content-Type": "application/json",
      'reqType': 'wx',
      'X-Access-Token': wx.getStorageSync('token')
    },
    data
  });
}